Latest Questions

Laravel request()->all() is empty in booted function when running tests

I created a trait sets up some Global Scopes based on the query parameters. It does that by reading from the request() helper and reading the query parameters f

Attempting to solve this problem more efficiently

I read a natural number with at most 9 digits. I have to form a vector with the even digits of that number, in ascending order, with each digit appearing once (

Execute huge Cypher script with CREATE (node and relationships)

I have a question about settings (Neo4j configuration). I have a 15GB Cypher script with CREATE keywords only (no CSV loading) , which has a repeating pattern i

Power set using BST in haskell

I have implemented a Set datatype in Haskell using Binary search tree. I have not used any of the in-built functions nor imported any module. My set datatype is

How the remove the yellow bar for "strong password" for SecureFields in SwiftUI?

I am new to SwiftUI and am trying out the SecureFields now. I am using two SecureFields in one VStack and for some reason when I use the iOS keyboard they show

Why is my accuracy is zero after set backbone trainable?

I trained my model with frozen backbone like: model.get_layer('efficientnet-b0').trainable = False Now, I unfreeze backbone, compile model, start training and

On-the-fly thumbnails in React

I am developing a website with React which has what we called "snippets", basically a modal window displaying some kind of media (audios, videos, slides, text q

Nuxt 3 won't run after importing composition api module

I just started a fresh project with Nuxt 3. Installed only Sass and tailwind packages, everything worked fine. Then I added composition-api and it didn't start

Keep primeng multiselect open on scroll

I have a primeNG multiselect (p-multiselect) as part of a component library, which we're adding into a report with many other multiselects to create filters. Si

MethodOf type cannot be used to call the method

I would like to dynamically generate some tests, for that I have to call a method with the method name to be called and then all the test setup is done and the

Metadata Query to get the list of all the mappings which contain a specific Stored procedure in Informatica

I have some stored procedures and I need to get the list of all the mappings in informatica which have used that Stored Procedures. So i need METADATA query to

How can I change the color of certain characters using tkinter in python?

I'm coding a brainfuck compiler and im having trouble updating the text color, as I want different symbols to have a different color depending on what they are.

What is the valid name of the contact?

I'm trying to give a name to my smart contract. But All given names is invalid. Where is the mistake? Because I guess all names are alpha-numeric. Can you help

Vaadin Grid - specific rows always on top

I have two classes, one named "Folder" and the second one "Item". I'm using an interface to show folders and items together in one Vaadin Grid. I wrote a custom

How can I use Q objects on Two Dynamic Search Forms in Django

I am working on a Django project where I want to search profile records for those that are resident in a particular country and state. In this project I would b

Tweaking Floyd-Warshall Algorithm to detect cycles

Cheers, I am trying to solve the problem of minimum length cycle in a directed graph, and I came across a solution that suggested that I should tweak the Floyd-

Python ImportError: sys.meta_path is None, Python is likely shutting down

When using __del__ datetime.date.today() throws ImportError: sys.meta_path is None, Python is likely shutting down import datetime import time import sys clas

How do I create textbox dynamically in jxa?

New at javascript, trying to create a dynamic textbox in pages but it keeps getting an error. var app = Application('Pages'); var doc = app.document; var pages

stream works in Firefox only

I'm trying to build a video chat app with JavaScript and PeerJS I want to allow user to join with both video and camera or either of them or neither, everything

Add MC Holdout layers to trained model in Keras

I am looking for a solution for a problem that has arisen when building a generic ANN for image classification in R. What I want to do is either: Design and com

How do i get the arduino upload buttons back in visual studio code?

In visual studio code How do I get the Arduino upload buttons back? Mine has disappeared.

Android Studio gone nuts all of a sudden

Firstly, Look at the screenshot that I've attached, It is giving me red lines (look to the right) in my entire code (386 errors in 766 lines) all of a sudden (

CSV with Embebbed JSON using Python

I'm working with GWAS data. Need help. My data looks like this: IID,rs098083,kgp794789,rs09848309,kgp8300747,..... 63,CC,AG,GA,AA,..... 54,AT,CT,TT,AG,..... 12,

Construction Heuristic Phase slower since migration from 7.28 to 8.14

After migrating Optaplanner from version 7.28.0.FINAL to version 8.14.1.FINAL, the construction heuristic phase defined in the configuration as following : &l

How to replace nan with a certain value across rows but only between values

I have the following dataframe, and I want to replace nan with a certain value, let's say, 0.0001, only if there is a value right to the missing value. ID 2021_

AADSTS900144: The request body must contain the following parameter: 'grant_type'

I am trying to generate the Access_Token after generating the Authorization code using MS Graph API. I am getting the following error (Screen shot below) "error

Can I sign in with a Google account in my app instead of adding a Google account to my phone?

I'm developing an Android app and I'm using Google sdk for Google oauth login, when using Google login. When I sign in with Google, the system pops up an option

pandas scraping html tables

There is an HTML file of tables. There are about 100 of them, and they all often have the same values. The values in the second and first column of all tables a

Unknown authentication strategy Passport js

I want to have 2 different instances of passport Js for my app (user and admin - both with jwt authentification ). I read in the official documentation that the

mysql null value case when is null does not work

I have following query to handle null value and flag those based on two table join however c.pure_proc_flag is null then 0 else 1 does not provide the result